package com.xxl.bean;

import java.util.Objects;

public class Student {

    private String studentId;
    private String studentName;
    private String classesName;

    public Student() {
    }

    public Student(String studentId, String studentName, String classesName) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.classesName = classesName;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", classesId=" + classesName +
                '}';
    }

    public String getStudentId() {
        return studentId;
    }
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o){
            return true;
        }
        if (o == null || getClass() != o.getClass()){
            return false;
        }
        Student student = (Student) o;
        return Objects.equals(studentId, student.studentId) &&
                Objects.equals(studentName, student.studentName) &&
                Objects.equals(classesName, student.classesName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(studentId, studentName, classesName);
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getClassesName() {
        return classesName;
    }

    public void setClassesName(String classesName) {
        this.classesName = classesName;
    }
}
